package 算法模板题;/**
 * @author： li
 * @date： 2022-04-04 17:04
 * @version 1.0
 */
//二分法
import java.util.*;
public class  求立方根1{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int k =sc.nextInt();
        while(k>0){
            double n = sc.nextDouble();
            System.out.printf("%.1f",getCubeRoot(n));
            k--;
        }
    }
    public static double getCubeRoot(double input){
        double min = 0;
        double max = input;
        double mid =0;
        while((max-min)>0.0001){
                mid =(max+min)/2;
            if(mid*mid*mid>input){
                    max = mid;
                continue;
            }
            if(mid*mid*mid<input){
                    min = mid;
                continue;
            }
            return mid;
        }
        return max;
    }
}